﻿namespace SharpF2.View
{
	using System.Windows;
	using ModelView;

	/// <summary>
	/// Define the main application window
	/// </summary>
	public partial class MainView
	{
		#region Constructors

		public MainView()
		{
			InitializeComponent();

			var mainViewViewModel = new MainViewViewModel();

			DataContext = mainViewViewModel;

			var args = Application.Current.Resources["Args"] as string[];

			if (null != args)
				mainViewViewModel.AddFiles(args);
		}

		#endregion
	}
}